bitkeeper revision 1.1236.12.17 (422ebd6bbZvWUE6_1BGsaHxqMbgdQg)
authormulix@mulix.org[kaf24] <mulix@mulix.org[kaf24]>
Wed, 9 Mar 2005 09:10:03 +0000 (09:10 +0000)
committermulix@mulix.org[kaf24] <mulix@mulix.org[kaf24]>
Wed, 9 Mar 2005 09:10:03 +0000 (09:10 +0000)
commitd53e267134974dbea64fea4790e8865a90a28f33
tree8061c76a570f3f538277d9ee5ec863863854f267
parent0b001be78115956eb3c13d6d6bc2ddd250ac7cac
bitkeeper revision 1.1236.12.17 (422ebd6bbZvWUE6_1BGsaHxqMbgdQg)

[PATCH] [PATCH] fix error path handling in physdev

This patch fixes the error path handling in physdev.o.
- handle memory allocation failures properly
- physdev_pci_access_modify: if something fails, remove the new
physdev or reset its access mode if it already existed
- clear the priviledge bits if something fails
- do_physdev_op: properly check copy_to-user

Patch against the unstable tree, works for me in qemu on x86 with domU
accessing a single pci device, but more testing appreciated (is anyone
using the direct pci access stuff?)

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
BitKeeper/etc/logging_ok
xen/common/physdev.c